package com.ruiyian.common.utils;

import java.text.DecimalFormat;

public class NumberFormatUtil {

	public static <T> String twoDecimals(T args) {
		if (args == null) {
			return "0";
		}
		DecimalFormat df = new DecimalFormat("#.00");
		return df.format(args);
	}

	public static void main(String[] args) {
		System.out.println(twoDecimals(3.64456433));
	}
}
